/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package NajaTaskClient.classes;

/**
 *
 * @author alex.silva
 */
public class PalavraChave implements Comparable<PalavraChave> {

    private Integer codigo;
    private String nome;

    public int compareTo(PalavraChave o) {
        final int EQUAL = 0;
        final int AFTER = 1;
        if (this == o) {
            return EQUAL;
        }
        if (this.codigo.equals(o.codigo)) {
            return EQUAL;
        }
        return AFTER;
    }
}
